{% extends "base.html" %}

{% block header%}
<title>渠道配置编辑</title>
{% endblock %}

{% block content %}
{% with model_name='Channel' url_prefix='/pack/channel/channel' %}
<div class="bar">
	<a>渠道管理</a> -> 渠道配置编辑
	<div class="buttons">
		<a  class="btn btn-app btn-grey btn-xs radius-4 pull-right submit"  />保存</a>
	</div>
</div>

<form action="{{url_prefix}}?id={{model.id}}" method="post">
	<table class="form2">
	<tr>
        <th>项目名称：</th>
        <td>
            <select name="project">
                {% for id, name in pro_tuple %}
                    <option value="{{id}}" {% if model.project.id == id %}selected="selected"{% endif %}>{{name}}</option>
                {% endfor %}
            </select>
        </td>
	</tr>
	<tr>
        <th>平台:</th>
        <td>
            <select name="plat">
                {% for v,n in plat %}
                    <option value="{{v}}" {% if model.plat == v %}selected="selected"{% endif %}>{{n}}</option>
                {% endfor %}
            </select>
        </td>
    </tr>
    <tr>
		<th>渠道(SDK)名称：</th>
        <td>
            <input type="text" name="sdk_name" value="{{model.sdk_name}}" required="required"/>
        </td>
	</tr>
    <tr>
		<th>工程名：</th>
        <td>
            <input type="text" name="plugin_name" value="{{model.plugin_name}}" required="required"/>
        </td>
	</tr>
    <tr>
        <th>备注：</th>
        <td>
            <textarea name="remark" style="width: 600px; height: 400px;">{{model.remark}}</textarea>
        </td>
    </tr>
</table>
</form>
{% endwith %}
{% endblock %}